Ex: Let’s have given  the rectangle ABCD with area 24 cm2 and with circumference 20 cm. Determine the length of his diagonals.

a = 6 (slider from 0 to 25, step 0.1)
b = 4 (slider from 0 to 25, step 0.1)
E = (0, 0)
F = (1, 0)
A = (-0.14111894630874522, 10.41022705927493)
u = Vector(E, F)
vzdialenosťBC = Distance(E, F)
B: A + u a
G = (1, 1)
v = Vector(F, G)
C: B + b v
D: A + b v
poly1, a_1, b_1, c, d = Polygon(A, B, C, D)
e = Segment(A, C)
vzdialenosťAC = Distance(A, C)
f = Distance(A, C)
TextAC: "\overline{" + (Name[A]) + (Name[C]) + "} \, = \, " + f
Textpoly1: "Area of " + (Name[A]) + (Name[B]) + (Name[C]) + (Name[D]) + " = " + poly1
o: 2 a + 2 b
text1: "Circumference of ABCD = " + o